<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<s:include value="/WEB-INF/core/common/top.jsp" />

<script type="text/javascript" language="javascript" src="${pageContext.request.contextPath}/core/scripts/jquery.js"></script>
<script type="text/javascript" language="javascript" src="${pageContext.request.contextPath}/core/scripts/jquery_form.js"></script>
<script type="text/javascript" language="javascript" src="${pageContext.request.contextPath}/core/scripts/buyinfo.js"></script>
<script type="text/javascript" language="javascript" src="${pageContext.request.contextPath}/core/scripts/ajax_s.js"></script>

<script type="text/javascript">
	function submit(formId){
		var form = document.getElementById(formId);
		alert(form);
		form.submit();
	}
</script>

<h2>添加资源</h2> 
<form id="rescAdd" action="addResc.do">
<div id="categ">
    <ul> 
     <li><b>名称：</b><input name="resc.name" type="text" /></li>  
     <li><b>路径：</b><input name="resc.resString" type="text" /></li>
     <li><b>菜单：<s:radio name="resc.menuJust" list="#{1: '是', 0: '否'}" value="0" cssClass="input12" ></s:radio></li>
     <li><b>选择父类：<s:select list="#request.rescList" name="resc.parFuncId" listKey="id" listValue="name"/></li>
     <li><b>&nbsp;</b><div class="botton"><a href="#" onclick="submit('rescAdd')">提 交</a></div></li>
      <!--<li><b>&nbsp;</b><div class="botton"><a href="#" onclick="submitForm_ajax('rescAdd','asdf')">提 交</a></div></li>-->      
    </ul>
</div>
</form>
 